<?php
/**
 * Created by Rudy.
 * Author: Rudy
 * Date: 2020/11/28
 * Time: 23:18
 */

namespace App\Models\Constant;


class OrderConstant {

    const STATUS_WAIT_AUTO_CHECK = 1;//待自动对比审核
    const STATUS_WAIT_AUTO_HUMAN_CHECK = 12;//自动对比没通过，转到该状态，人工审核
    const STATUS_WAIT_HUMAN_CHECK = 2;//待人工审核
    const STATUS_CHECK_PASS = 3;//审核通过
    const STATUS_WAIT_OFF = 4;//待核销
    const STATUS_WAIT_REPAY = 5;//待报销
    const STATUS_END = 6;//完成
    const STATUS_CANCEL = 10;//取消
    const STATUS_CHECK_NOT_PASS = 11;//审核不通过



    const STATUS_WAIT_RECEIVING = 7;//待接单
    const STATUS_WAIT_REPAIR = 8;//待维修
    const STATUS_WAIT_REPAIRING = 9;//维修中
    const STATUS_WAIT_REPAIRED = 13;//已维修

    const MAP_STATUS = [
        self::STATUS_WAIT_AUTO_CHECK => '待审核',
        self::STATUS_WAIT_HUMAN_CHECK => '待审核',
        self::STATUS_WAIT_AUTO_HUMAN_CHECK => '待审核',
        self::STATUS_CHECK_PASS => '审核通过',
        self::STATUS_CHECK_NOT_PASS => '审核不通过',
        self::STATUS_WAIT_OFF => '待核销',
        self::STATUS_WAIT_REPAY => '待报销',
        self::STATUS_END => '完成',
        self::STATUS_WAIT_RECEIVING => '待接单',
        self::STATUS_WAIT_REPAIR => '待维修',
        self::STATUS_WAIT_REPAIRING => '维修中',
        self::STATUS_WAIT_REPAIRED => '已维修',
        self::STATUS_CANCEL => '取消',

    ];

    const MAP_NOT_EFFECT_APPLY = [

        //不通过的不能算，因为 不通过可以重新申请，要是当前单子是第6个单子，点了重新申请，那就没法再提交了
        //self::STATUS_CHECK_NOT_PASS,
        self::STATUS_CANCEL,

        //已经完成的订单得算一次使用
        //self::STATUS_END,
        self::STATUS_WAIT_REPAY,
    ];


}
